home *** CD-ROM | disk | FTP | other *** search
- /* Notify */
-
- /* Skickar ett meddelande till Shuffle med process och fönster. */
-
- MODULE 'exec/ports'
- MODULE 'exec/tasks'
- MODULE 'exec/types'
- MODULE 'exec/nodes'
- MODULE 'exec/io'
- MODULE 'exec/memory'
- MODULE 'intuition/screens'
- MODULE 'intuition/intuition'
- OBJECT memess
- mess : mn
- wind : LONG
- process : LONG
- ENDOBJECT
- DEF ms:PTR TO memess
-
- PROC main()
- DEF w:PTR TO window
- DEF t:PTR TO tc
- DEF port:PTR TO mp
- w:=Long(intuitionbase+52)
- t:=FindTask(NIL)
- IF (ms:=AllocMem(SIZEOF memess,MEMF_PUBLIC+MEMF_CLEAR))
- ms.wind:=w
- ms.process:=t
- Forbid()
- IF (port:=FindPort('Shuffle')) THEN PutMsg(port,ms) ELSE FreeMem(ms, SIZEOF memess)
- Permit()
- ENDIF
- ENDPROC
-